package com.r2coding.server.modules.file.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.r2coding.web.serializer.IdEncryptSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2023/11/6 13:41
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class FolderTreeNodeVo implements Serializable {

    private static final long serialVersionUID = 1824912568266149556L;

    /**
     * 文件夹名称
     */
    private String label;

    /**
     * 文件id
     */
    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long id;

    /**
     * 父文件id
     */
    @JsonSerialize(using = IdEncryptSerializer.class)
    private Long parentId;

    /**
     * 子节点集合
     */
    private List<FolderTreeNodeVo> children;
}
